﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EtlComm
{

    /// <summary>
    /// SQL类型
    /// </summary>
    public enum SQLAction
    {
        /// <summary>
        /// 添加
        /// </summary>
        ADD,
        /// <summary>
        /// 删除
        /// </summary>
        DELETE,
        /// <summary>
        /// 更新
        /// </summary>
        UPDATE,
        /// <summary>
        /// 先删除再添加
        /// </summary>
        DELADD,
        /// <summary>
        /// 添加更新
        /// </summary>
        ADDUP
    }
    /// <summary>
    /// 数据库类型
    /// </summary>
    public enum DataSource
    {
        /// <summary>
        /// InterBase
        /// </summary>
        IB,
        /// <summary>
        /// MySql
        /// </summary>
        MYSQL,
        /// <summary>
        /// SQL Server
        /// </summary>
        MSSQL
    }
    /// <summary>
    /// 调度进度
    /// </summary>
    public enum DispatchProcess
    {
        /// <summary>
        /// 等待调度
        /// </summary>
        WAIT,
        /// <summary>
        /// 执行任务
        /// </summary>
        EXCUTE,
        /// <summary>
        /// 任务正确完成
        /// </summary>
        COMPLETED,
        /// <summary>
        /// 调度终止
        /// </summary>
        STOP,
        /// <summary>
        /// 任务执行失败
        /// </summary>
        FAIL,
        /// <summary>
        /// 任务完成但是有错误发生
        /// </summary>
        COMPLETEDERROR,
        /// <summary>
        /// 准备调度
        /// </summary>
        READY,
        /// <summary>
        /// 找不到主机
        /// </summary>
        NOHOST
    }
    /// <summary>
    /// 步长类型
    /// </summary>
    public enum StepType
    {
        /// <summary>
        /// 时间类型
        /// </summary>
        DATETIME,
        /// <summary>
        /// 整数类型
        /// </summary>
        INT,
        /// <summary>
        /// 无类型
        /// </summary>
        NONE
    }
    /// <summary>
    /// 日志类型
    /// </summary>
    public enum LogType
    {
        /// <summary>
        /// 一般信息
        /// </summary>
        INFO,
        /// <summary>
        /// 错误信息
        /// </summary>
        ERROR,
        /// <summary>
        /// 警告信息
        /// </summary>
        WARING
    }
}
